# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        Young  
# Name:         demo4.11
# Description:
# Author:       $赵怡蕾
# Date:         2019/1/28
#-------------------------------------------------------------------------------

numbers = [1,2,3,4,5,6,7,8]
print(numbers[-3:])               # 省略了结束索引，运行结果：[6, 7, 8]
print(numbers[-3:8])              # 结束索引用了正整数作为索引，运行结果：[6, 7, 8]